package com.itheima.dao;

import com.itheima.domain.Teacher;

import java.util.ArrayList;

/*
老师数据操作接口
 */
public interface ITeacherDao {
    //增
    void add(Teacher teacher);
    //删
    void delete(String sid);
    //改
    void update(String sid,Teacher newTeacher);
    //查
    ArrayList<Teacher> findAllTeachers();
    //根据工号查
    int getIndex(String sid);
}
